package com.leanyuan.main.controller;


import com.leanyuan.main.domain.StaffMsg;
import com.leanyuan.main.service.StaffMsgService_M;
import com.leanyuan.main.util.RepformVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 相亲相爱一家人
 * @since 2021-05-25
 */
@RestController
@RequestMapping("/leanyuan/staff-msg")
public class StaffMsgController_M {
    @Autowired
    private StaffMsgService_M staffMsgServiceM;
    @GetMapping("staffMsg")
    public RepformVo staffMsg(@PathVariable(name = "id") Long id) {
        List<StaffMsg> list = staffMsgServiceM.list(null);
        return RepformVo.success(list);
    }
}

